/**
 * 
 */
package cc.comac.mom.entity;

import java.time.LocalDateTime;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cc.comac.mom.entity.base.BaseResultEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* @Description: 备件到期日期
* @author: fyt 
* @date: 2020年7月15日上午10:44:19
*/
@TableName(value = "equip_spare_parts_due")
@Data
@EqualsAndHashCode(callSuper=true)
public class EquipSparePartsDueEntity extends BaseResultEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@TableField(value="spare_parts_due_id")
	@TableId(value = "spare_parts_due_id",type=IdType.INPUT )
	private long   id;
	
	private String workNumber;
	@TableField(exist = false)
	private String devName;
	private String partNumber;
	@TableField(exist = false)
	private String specifications;
	@TableField(exist = false)
	private String materialType;
	@TableField(exist = false)
	private String location;
	private String replacementType;
	private String devNumber;

	private String benchmarkDevPart;
	private int replacementNumber;
	private long daysRemain;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime replacementTime = null; //更换日期
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime nextDate = null;
}
